home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15188 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Dangling pointer?
  5. Date: 17 Apr 1996 08:40:28 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l33dcINN8ms@keats.ugrad.cs.ubc.ca>
  8. References: <4l0r4b$jte@dewey.csun.edu> <fcusack-1604962132440001@mudskipper.cac.psu.edu>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <fcusack-1604962132440001@mudskipper.cac.psu.edu>,
  12. frank. <fcusack@tdx.org> wrote:
  13. >In article <4l0r4b$jte@dewey.csun.edu>, kc44097@csun.edu (chen) wrote:
  14. >
  15. >>     What is "dangling pointer",can someone give me a defination and example?
  16. >> Please e-mail me kc44097@huey.csun.edu
  17. >> 
  18. >
  19. >It's the complement of a split infinitive. :)
  20.  
  21. Actually it isn't. A there is nothing wrong with putting words between the "to"
  22. and the verb. In fact, it's the only place an adjective can go:
  23.  
  24.     "I want to quickly get this message out"
  25.  
  26. is perfectly grammatical. It would be ungrammatical to put the "quickly" in
  27. front of the "to" or after the "get". You could rewrite the sentence as "I want
  28. to get this message out quickly", but that is a transformation. Linguists take
  29. the view that the syntax of the language is defined by how the speaker's use
  30. it, not by the utterly empirically inadequate rules of grammar would have them
  31. speak or write. Most grammar texts don't even recognize the recursively
  32. generative nature of sentence structure. So the next time someone criticizes
  33. your infinitive, tell them to split!
  34.  
  35. A somewhat better analogy to a dangling C pointer is the use of a reference
  36. that is unresolved. For example, the use of a word like "he" or "it" without an
  37. antecedent. That's not a syntactic error, of course---but neither is a dangling
  38. pointer in C, and that's why any grammar error (legitimate or not) is a bad
  39. analogy for it.
  40. -- 
  41. I'm not really a jerk, but I play one on Usenet.
  42.